package com.bstek.code.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 数据库表信息
 * 
 * @company www.bstek.com
 * @author hans
 * @createDate 2017年6月15日
 */
public class TableInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 表名
	 */
	@PropertyDef(label = "表名")
	private String name;
	/**
	 * javaBeanName
	 */
	@PropertyDef(label = "javaBean名")
	private String jName;
	/**
	 * 表注释
	 */
	@PropertyDef(label = "表注释")
	private String label;
	/**
	 * 联合主键列表
	 */
	@PropertyDef(label = "联合主键列表")
	private List<ColumnInfo> uPrimaryKey = new ArrayList<ColumnInfo>();
	/**
	 * 唯一约束列表
	 */
	@PropertyDef(label = "唯一约束列表")
	private List<ColumnInfo> uniqueKey = new ArrayList<ColumnInfo>();
	/**
	 * 表的列信息
	 */
	@PropertyDef(label = "列信息集合")
	private List<ColumnInfo> cols = new ArrayList<ColumnInfo>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<ColumnInfo> getCols() {
		return cols;
	}

	public void setCols(List<ColumnInfo> cols) {
		this.cols = cols;
	}

	public List<ColumnInfo> getuPrimaryKey() {
		return uPrimaryKey;
	}

	public void setuPrimaryKey(List<ColumnInfo> uPrimaryKey) {
		this.uPrimaryKey = uPrimaryKey;
	}

	public List<ColumnInfo> getUniqueKey() {
		return uniqueKey;
	}

	public void setUniqueKey(List<ColumnInfo> uniqueKey) {
		this.uniqueKey = uniqueKey;
	}

	public String getjName() {
		return jName;
	}

	public void setjName(String jName) {
		this.jName = jName;
	}

}
